package myenum;

import org.testng.Assert;
import org.testng.annotations.Test;

public class Enum1 {

    @Test
    public void t1() {
        Assert.assertEquals(101, season.SPRING.ordinal());
    }

}

enum season {
    SPRING(101),
    SUMMER(102),
    FAIL(103),
    WENTER(104);

    private int id;

    season(int id) {
        this.id = id;
    }
}
